from selenium import webdriver
from Unit_2.Page.Page import Page
import unittest,time,logging
from selenium.webdriver.common.by import By
from Unit_2.Tools.Tools import Tools
class Testlogin(unittest.TestCase):

    def setUp(self):
        self.driver = webdriver.Edge()
        Tools().rizhi()
        logging.info('测试固件')
    def tearDown(self):
        time.sleep(10)
        self.driver.quit()
        logging.info('结束')
    def test_yewu(self):
        logging.info('start')
        po = Page(self.driver)
        po.business()
        # dy2 = self.driver.find_element(By.XPATH,'/html/body/div[2]/div/div[1]/div/p/span').text
        # self.assertEqual(dy2,'jxw477458368')


    logging.info('jieshu')
if __name__ == '__main__':
    unittest.main()